#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}

void Widget::on_pushButton_up_clicked()
{
    QRect rect = ui->Button->geometry();
    qDebug() << "move up before:" << rect;
    rect.moveTop(rect.top() - 5);
    qDebug() << "move up after:" << rect;
    ui->Button->setGeometry(rect);
}


void Widget::on_pushButton_down_clicked()
{
    QRect rect = ui->Button->geometry();
    qDebug() << "move down before:" << rect;
    rect.moveTop(rect.top() + 5);
    qDebug() << "move down after:" << rect;
    ui->Button->setGeometry(rect);
}


void Widget::on_pushButton_left_clicked()
{

}


void Widget::on_pushButton_right_clicked()
{

}

